package com.ctsi.ssdc.repository;

import com.ctsi.ssdc.domain.LitemallCoupon;

import java.util.List;

import com.ctsi.ssdc.domain.LitemallCouponExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;

/**
 * @author ctsi-biyi-generator
*/
@Mapper
public interface LitemallCouponRepository extends BaseRepository<LitemallCoupon, Integer, LitemallCouponExample> {
    @Override
    long countByExample(LitemallCouponExample example);

    @Override
    int deleteByExample(LitemallCouponExample example);

    @Override
    int deleteByPrimaryKey(Integer id);

    @Options(useGeneratedKeys=true, keyProperty="id")
    @Override
    int insert(LitemallCoupon record);

    @Options(useGeneratedKeys=true, keyProperty="id")
    @Override
    int insertSelective(LitemallCoupon record);

    @Override
    List<LitemallCoupon> selectByExample(LitemallCouponExample example);

    @Override
    LitemallCoupon selectByPrimaryKey(Integer id);

    @Override
    int updateByExampleSelective(@Param("record") LitemallCoupon record, @Param("example") LitemallCouponExample example);

    @Override
    int updateByExample(@Param("record") LitemallCoupon record, @Param("example") LitemallCouponExample example);

    @Override
    int updateByPrimaryKeySelective(LitemallCoupon record);

    @Override
    int updateByPrimaryKey(LitemallCoupon record);

    List<LitemallCoupon> selectByExampleSelective(LitemallCouponExample example, LitemallCoupon.Column[] result);
}